package com.rmi;

import com.dao.Flight;
import com.dao.User;

import java.rmi.Remote;
import java.rmi.RemoteException;
import java.util.List;

/**
 * Created by Phillip on 2014/4/26.
 */
public interface RMIBrokerInterface extends Remote{

    public List<Flight> queryFlights(int table, String deptString, String destString, String deptDateString, String returnDateString) throws RemoteException;

    public List<String> queryCity(int table) throws RemoteException;

    public String book(int table, String flightNoString1, String deptString, String clasString1, String flightNoString2, String returnString,
                        String classString2, String nameString, String creditString) throws RemoteException;

    public String queryRates(int table, String flightString, String classString) throws RemoteException;

    public String queryAirline(int table, String deptString, String dsctString) throws RemoteException;

    public boolean createUser(User user) throws RemoteException;

    public User getUser(String username) throws RemoteException;

}
